package com.ydgg.ltar.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.ydgg.ltar.model.Charts;
import com.ydgg.ltar.model.ChartsExample;

@Repository
public interface ChartsMapper {
    int countByExample(ChartsExample example);

    int deleteByExample(ChartsExample example);

    int deleteByPrimaryKey(Long id);

    int insert(Charts record);

    int insertSelective(Charts record);

    List<Charts> selectByExample(ChartsExample example);

    Charts selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") Charts record, @Param("example") ChartsExample example);

    int updateByExample(@Param("record") Charts record, @Param("example") ChartsExample example);

    int updateByPrimaryKeySelective(Charts record);

    int updateByPrimaryKey(Charts record);

    List<Charts> selectByWhere(@Param("where") String where);
    
    List<Map<String,Object>> selectByPage(Map<String, Object> param);

    List<Map<String,Object>> selectByTop();
  
}